/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package View;

import agh.rozproszony.model.Message;
import java.util.List;

/**
 *
 * @author Marcin_PC
 */
public class MessageRow {
   // {"Data", "Osoba", "Tytuł ","Tresc"};

    String title;
    String person;
    int tempolaryPerson;
    String message;

    MessageRow(Message message) {
       
        this.title = message.getTitle();
        //this.person = message.getSenderId();
        this.tempolaryPerson = message.getSenderId();
        this.message = message.getContent();
        
    }
    MessageRow(Message message, String usersLogin) {
       
        this.title = message.getTitle();
        this.person = usersLogin;
        //this.tempolaryPerson = message.getSenderId();
        this.message = message.getContent();
        
    }
    MessageRow(String usersLogin, String title, String content) {
       
        this.title = title;
        this.person = usersLogin;
        //this.tempolaryPerson = message.getSenderId();
        this.message = content;
        
    }

    MessageRow() {
       
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the tempolaryPerson
     */
    public int getTempolaryPerson() {
        return tempolaryPerson;
    }

    /**
     * @param tempolaryPerson the tempolaryPerson to set
     */
    public void setTempolaryPerson(int tempolaryPerson) {
        this.tempolaryPerson = tempolaryPerson;
    }
    
    
    
            
}
